package com.mata.worktime.entity.user;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mata.worktime.entity.BaseEntity;


/**
 * 角色和资源关联 t_sys_role_resource
 *
 * @author 占超群
 */
@TableName("t_sys_role_resource")
public class RoleResource extends BaseEntity
{
    /**
     * 角色ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    /**
     * 资源ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceId;

    public Long getRoleId()
    {
        return roleId;
    }

    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    public Long getResourceId()
    {
        return resourceId;
    }

    public void setResourceId(Long resourceId)
    {
        this.resourceId = resourceId;
    }

    @Override
    public String toString()
    {
        return "RoleResource [roleId=" + roleId + ", resourceId=" + resourceId + "]";
    }

}
